<?
	$yesterday = date('Y-m-d',strtotime("-1 day",time()));
	echo "yesterday=$yesterday";
	echo "<br>";
	
	echo date('Y',time());
	echo "<br>";
	echo substr('1993',0,4);
	echo "<br>";
	echo date('Y',time())-substr('1993',0,4);
	echo "<br>-------------<br>";

	$path = '/home/tonnet/unsin/unsin2012/uploads/member_face/201206';
	echo strpos($path,'/uploads',0); // 28
	echo "<br>";
	echo substr($path, strpos($path,'/uploads',0), strlen($path));
	echo "<br>-------------<br>";

	$member['A'] = 'A';
	$member['B'] = 'B';
	
	$member2 = '';
	
	echo isset($member) ? 'true' : 'false';
	echo "<br>";
	echo !empty($member) ? 'true' : 'false';
	echo "<br>";
	echo crypt("123zxc", "Tion1Ne5TwoRkU0nSi2nUgIfJeucYQlg" );
	
	echo "<br>-------------<br>";
	echo "<br>-------------<br>";
	echo date('Ymd',strtotime('2012-05-29'));
	echo "<br>-------------<br>";
	$target_date = date(strtotime('2012-05-29'));
	echo date('Y-m-d',strtotime("-1 day",$target_date));
	echo "<br>-------------<br>";
	$target_date = time();
	echo date('Y-m-d',strtotime("-1 day",$target_date));
	echo "<br>-------------<br>";
	echo date('Y-m-d',date('Y-m-d',time()));

	$ee = explode(",",'premium,7');
	echo $ee[0].'<br>';
	echo $ee[1].'<br>';
	phpinfo();
?>
